home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / SourceCode / AdobeExamples / NX_Binary / README < prev    next >
Encoding:
Text File  |  1992-12-19  |  2.2 KB  |  42 lines

  1.  
  2. README file for the BinaryEncoding application.
  3.  
  4. The BinaryEncoding application is not really intended as a model for other
  5. applications. Much like the StrokeAdjust application, this application is provides
  6. material for comparison. In this case the material is files in different formats. Two of
  7. the files are in the binary formats, binary token and binary object sequence. The
  8. other two are in ASCII. One provides the complete operator names and the other
  9. provides abbreviated operator names.
  10.  
  11. This application is taken largely from the Scolling application. It uses the same
  12. parsing routines to read the distilled PostScript files as well as the same 
  13. structures for holding the paths. The functionality has been changed so that 
  14. instead of exploring drawing issues it writes out the different PostScript language
  15. encodings. These EPS files can then be opened in the Preview application. PostScript
  16. timing operators are included in the file. The times are printed to either the Console or
  17. the shell depended on where the application is launched. 
  18.  
  19.  
  20. Below lies an annotated list of the files used in the application. 
  21.  
  22. FormatApp        - A subclass of Application. Creates the window with the
  23.                     ScrollView, DocView and DrawingView. 
  24. DocView            - A subclass of View. Serves as the DocView for the ScrollView.
  25.                     Makes the DrawingView a subview making it easier to
  26.                     size and scale the DrawingView. The Drawing View is
  27.                     resized whenever the user zooms into or out of the
  28.                     document.
  29. DrawingView        - A subclass of View that writes out the different encoding outputs.
  30. Graphic            - A sublcass of Object. Holds the path and graphic state parameters
  31.                     for a single component of the drawing.
  32.  
  33. DrawingViewWraps.psw    - Wraps for outputting the abbreviated ASCII format.
  34.  
  35. EpsfParser.m        These files parse an EPS file first verifying it as EPS and then as
  36. lex.l                a distilled file. The parsing acts as a rudimentry interpreter placing
  37. ierror.c            items on the stack and the popping them. A new graphic object is
  38. iinterpreter.c        created whenever a stroke or fill occurs when parsing. When this 
  39. iintrepreterhooks.m    happens, the current graphics state and the current path in this
  40. iparser.c            simple interpreter are installed in the new graphic object.
  41. iparserhooks.m
  42.